package com.ccb.sc.common.modules.live.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ccb.sc.common.modules.live.entity.LiveStreamingGoods;
import com.ccb.sc.common.modules.live.vo.LiveStreamingGoodsListVo;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 直播商品表 Mapper 接口
 * </p>
 *
 * @author ken
 * @since 2022-07-30
 */
public interface LiveStreamingGoodsMapper extends BaseMapper<LiveStreamingGoods> {

    List<LiveStreamingGoodsListVo> selectListByLiveId(@Param("params") QueryParam params);

    @Data
    @Accessors(chain = true)
    class QueryParam {

        private Long liveId;

        private String goodsName;

        private Long categoryId;

        private Integer offerCategory;

        private Boolean crossStoreFullReduction;

        private Long memberId;

    }

}
